package com.shine.sys.entity;

import javax.persistence.Entity;
import javax.persistence.Table;

import com.shine.common.entity.BaseEntity;

@Entity @Table(name="sys_resource")
public class Resource extends BaseEntity<Integer> {

	private static final long serialVersionUID = 1L;

	/**
     * 标题
     */
    private String name;

    /**
     * 资源标识符 用于权限匹配的 如sys:resource
     */
    private String identity;
    
    /**
     * 父资源标识
     */
    private String parentIdentity ;

    /**
     * 点击后前往的地址
     * 菜单才有
     */
    private String href;


    /**
     * 父节点ID
     */
    private Integer parentId;

    /**
     * 父节点路径
     */
    private String parentIds;

    /**
     * 排序
     */
    private int weight;
    
    /**
     * 是否显示
     */
    private Boolean showView = Boolean.TRUE;
    
    /**
     * 是否展开
     */
    private Boolean expanded = Boolean.TRUE ;
    
    
    /**
     * 菜单类型（菜单：menu, 操作：oper）
     */
    private String type ;
    
    
	public String getParentIdentity() {
		return parentIdentity;
	}

	public void setParentIdentity(String parentIdentity) {
		this.parentIdentity = parentIdentity;
	}

	public Boolean getExpanded() {
		return expanded;
	}

	public void setExpanded(Boolean expanded) {
		this.expanded = expanded;
	}

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}

	public static long getSerialversionuid() {
		return serialVersionUID;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getIdentity() {
		return identity;
	}

	public void setIdentity(String identity) {
		this.identity = identity;
	}

	public Integer getParentId() {
		return parentId;
	}

	public void setParentId(Integer parentId) {
		this.parentId = parentId;
	}

	public String getParentIds() {
		return parentIds;
	}

	public void setParentIds(String parentIds) {
		this.parentIds = parentIds;
	}


	public int getWeight() {
		return weight;
	}

	public void setWeight(int weight) {
		this.weight = weight;
	}

	public Boolean getShowView() {
		return showView;
	}

	public void setShowView(Boolean showView) {
		this.showView = showView;
	}

	public String getHref() {
		return href;
	}

	public void setHref(String href) {
		this.href = href;
	}

    
}